package com.iw.adoms.entity;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

import com.iw.core.orm.hibernate.BaseEntity;

@Entity
@Table(name = "qr_box_code")
@JsonIgnoreProperties({ "qrBatch", "uri", "path", "new","hibernateLazyInitializer" })
public class QrBoxCode extends BaseEntity {

	@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
	@JoinColumn(name = "qr_batch_id")
	private QrBatch qrBatch; // 批次

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "storage_batch_id")
	private StorageBatch storageBatch; // 所属入库的批次

	private String wCode; // 流水码
	private String qrCode; // 二维码
	private Integer goodsNum; // 二维码
	private String state; // 状态
	private String innerNum; // 内部编号

	private String memo; // 备注

	public QrBatch getQrBatch() {
		return qrBatch;
	}

	public void setQrBatch(QrBatch qrBatch) {
		this.qrBatch = qrBatch;
	}

	public String getwCode() {
		return wCode;
	}

	public void setwCode(String wCode) {
		this.wCode = wCode;
	}

	public String getQrCode() {
		return qrCode;
	}

	public void setQrCode(String qrCode) {
		this.qrCode = qrCode;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getInnerNum() {
		return innerNum;
	}

	public void setInnerNum(String innerNum) {
		this.innerNum = innerNum;
	}

	public Integer getGoodsNum() {
		return goodsNum;
	}

	public void setGoodsNum(Integer goodsNum) {
		this.goodsNum = goodsNum;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public StorageBatch getStorageBatch() {
		return storageBatch;
	}

	public void setStorageBatch(StorageBatch storageBatch) {
		this.storageBatch = storageBatch;
	}

}